import request from "@/libs/request";

// 单词领读
export function getWordReadList(data) {
  return request({
    url: "/classwork/api/read/page",
    method: "post",
    data,
  });
}

export function findWordReadByChapterId(data) {
  return request({
    url: "/classwork/api/read/findWordByChapterId",
    method: "post",
    data,
  });
}

export function classworkReadSave(data) {
  return request({
    url: "/classwork/api/read/save",
    method: "post",
    data,
  });
}

export function classworkReadReport(data) {
  return request({
    url: "/classwork/api/read/report",
    method: "post",
    data,
  });
}

// 单词速记

export function getWordChooseReport(data) {
  return request({
    url: "/classwork/api/choose/page",
    method: "post",
    data,
  });
}

export function findWordByChapterId(data) {
  return request({
    url: "/classwork/api/choose/findWordByChapterId",
    method: "post",
    data,
  });
}

export function classworkChooseSave(data) {
  return request({
    url: "/classwork/api/choose/save",
    method: "post",
    data,
  });
}

export function classworkChooseReport(data) {
  return request({
    url: "/classwork/api/choose/report",
    method: "post",
    data,
  });
}

//单词闯关
export function getWordPassList(data) {
  return request({
    url: "/classwork/api/pass/page",
    method: "post",
    data,
  });
}

export function findWordPassByChapterId(data) {
  return request({
    url: "/classwork/api/pass/findWordByChapterId",
    method: "post",
    data,
  });
}

export function classworkPassSave(data) {
  return request({
    url: "/classwork/api/pass/save",
    method: "post",
    data,
  });
}

export function testCommit(data) {
  return request({
    url: "/classwork/api/pass/testCommit",
    method: "post",
    data,
  });
}

export function classworkPassReport(data) {
  return request({
    url: "/classwork/api/pass/report",
    method: "post",
    data,
  });
}

//句子跟读

export function getSpokenList(data) {
  return request({
    url: "/classwork/api/spoken/page",
    method: "post",
    data,
  });
}

export function findSpokenSentenceList(data) {
  return request({
    url: "/classwork/api/spoken/findSentenceList",
    method: "post",
    data,
  });
}
export function findSpokenSentence(data) {
  return request({
    url: "/classwork/api/spoken/findSentence",
    method: "post",
    data,
  });
}
export function classworkSpokenSave(data) {
  return request({
    url: "/classwork/api/spoken/save",
    method: "post",
    data,
  });
}

export function classworkSpokenReport(data) {
  return request({
    url: "/classwork/api/spoken/report",
    method: "post",
    data,
  });
}

// 听力训练
export function getListeningEnglishList(data) {
  return request({
    url: "/classwork/api/listening/englishPage",
    method: "post",
    data,
  });
}

export function getListeningChineseList(data) {
  return request({
    url: "/classwork/api/listening/chinesePage",
    method: "post",
    data,
  });
}

export function findListeningSentenceList(data) {
  return request({
    url: "/classwork/api/listening/findSentenceList",
    method: "post",
    data,
  });
}

export function findSentenceByChapterId(data) {
  return request({
    url: "/classwork/api/listening/findSentenceByChapterId",
    method: "post",
    data,
  });
}

export function classworkListeningSave(data) {
  return request({
    url: "/classwork/api/listening/save",
    method: "post",
    data,
  });
}

export function classworkListeningReport(data) {
  return request({
    url: "/classwork/api/listening/report",
    method: "post",
    data,
  });
}
